<?php	
	$xmlstring = '
	<UserPhoto UserName="rafale@thetigerparty.com" BoardID="23">
		<Media ID="" BeMediaID="" MediaType="Camera" Author="rafale@thetigerparty.com" lastUpdate="2012-09-03 10:40 AM">
			<Text ID="" Title="Photo Saved" Description="happy EveryDay"/>
			<Image ID="" Type="JPG" FileName="SuperMan.jpg" Description=""/>
		</Media>
	</UserPhoto>';
//*
	$xml = simplexml_load_string($xmlstring);
/*/
	$xml = simplexml_load_file('php://input');
//*/
//	var_dump($_POST);
//	var_dump($_REQUEST);
//	var_dump( $xml );
	var_dump($_FILES);
	var_dump($_POST['xml']);

/*
// Logging class initialization
$log = new Logging();
 
// set path and name of log file (optional)
$log->lfile('mylog.txt');
 
// write message to the log file
$log->lwrite(var_dump($_POST));
$log->lwrite(var_dump($_REQUEST));
$log->lwrite(var_dump( $xml ));
$log->lwrite(var_dump( $_FILE ));
 
// close log file
$log->lclose();*/
?>